package com.jjx.trainingapi.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jjx.trainingapi.mapper.UserRecordMapper;
import com.jjx.trainingapi.entity.po.UserRecord;
import com.jjx.trainingapi.service.UserRecordService;

/**
 * @author LoveHuahua
 * @date 2022年05月24日 1:10
 * @description believe in yourself
 */
@Service
public class UserRecordServiceImpl extends ServiceImpl<UserRecordMapper, UserRecord> implements UserRecordService {

    /**
     * 查询指定用户的排名
     *
     * @param userId
     * @return
     */
    @Override
    public Integer getTotalCountRank(int userId) {
        return baseMapper.getTotalCountRank(userId);
    }
}

